﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Common;
using System.Data.Objects;
using System.Data.Entity.Infrastructure;

namespace DNA.Mvc.Publishing.Data.Entity
{
    public class PubDB : DbContext
    {
        public PubDB(string nameOrConnectionString) : base(nameOrConnectionString) { }

        public PubDB() : base("PubDB") { }

        public DbSet<Article> Articles { get; set; }

        public DbSet<Category> Categories { get; set; }

        public DbSet<Comment> Comments { get; set; }

        public DbSet<History> Histories { get; set; }

        public DbSet<Track> Tracks { get; set; }

        //public DbSet<Spam> Spams { get; set; }

        public DbSet<TranslatedCopy> TranslatedCopies { get; set; }

        public DbSet<Vote> Votes { get; set; }
    }
}
